package com.atguigu.gulimall.search.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@FeignClient("gulimall-product")
public interface ProductFeignService {

    //按照属性的id，查找属性的信息
    @RequestMapping("/product/attr/info/{attrId}")
    public R attrInfo(@PathVariable("attrId") Long attrId);

    //获取品牌
    @PostMapping("/product/brand/infos")
    public R brandsInfo(@RequestBody List<Long> brandId);
}


